package com.newland.esp.service.user;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface CookieService {
    /**
     * 设置 Cookie
     * *
     @param request
      * @param response
     * @param ticket
     * @return
     */
    boolean setCookie(HttpServletRequest request,
                      HttpServletResponse response, String ticket);

    /**
     * 获取 cookie
     * *
     @param request
      * @return
     */
    String getCookie(HttpServletRequest request);
    /**
     * 删除 cookie
     * *
     @param request
      * @param response
     * @return
     */
    boolean deleteCookie(HttpServletRequest request, HttpServletResponse response);
}
